package o;

public class fyp {
    public final fzp[] ˊ = new fzp[fzo.ʼ];
    public final fzp ˋ = new fzp();
    public final float[] ˎ = new float[fzo.ʼ];
    private final fzp ˏ = new fzp();
    private final fzp ॱ = new fzp();

    public fyp() {
        for (int i = 0; i < fzo.ʼ; i++) {
            this.ˊ[i] = new fzp();
        }
    }

    public final void ˋ(fyl o_fyl, fzn o_fzn, float f, fzn o_fzn2, float f2) {
        int i = 0;
        if (o_fyl.ˏ != 0) {
            fzp o_fzp;
            fzp o_fzp2;
            float f3;
            float f4;
            float f5;
            float f6;
            switch (o_fyl.ॱ) {
                case CIRCLES:
                    o_fzp = this.ˏ;
                    o_fzp2 = this.ॱ;
                    this.ˋ.ˊ = 1.0f;
                    this.ˋ.ॱ = 0.0f;
                    fzp o_fzp3 = o_fyl.ˎ;
                    o_fzp.ˊ = ((o_fzn.ˏ.ˊ * o_fzp3.ˊ) - (o_fzn.ˏ.ˏ * o_fzp3.ॱ)) + o_fzn.ˊ.ˊ;
                    o_fzp.ॱ = ((o_fzp3.ॱ * o_fzn.ˏ.ˊ) + (o_fzn.ˏ.ˏ * o_fzp3.ˊ)) + o_fzn.ˊ.ॱ;
                    o_fzp3 = o_fyl.ˊ[0].ˊ;
                    o_fzp2.ˊ = ((o_fzn2.ˏ.ˊ * o_fzp3.ˊ) - (o_fzn2.ˏ.ˏ * o_fzp3.ॱ)) + o_fzn2.ˊ.ˊ;
                    o_fzp2.ॱ = ((o_fzp3.ॱ * o_fzn2.ˏ.ˊ) + (o_fzn2.ˏ.ˏ * o_fzp3.ˊ)) + o_fzn2.ˊ.ॱ;
                    if (fzm.ˎ(o_fzp, o_fzp2) > 1.4210855E-14f) {
                        this.ˋ.ˊ = o_fzp2.ˊ - o_fzp.ˊ;
                        this.ˋ.ॱ = o_fzp2.ॱ - o_fzp.ॱ;
                        this.ˋ.ॱ();
                    }
                    f3 = (this.ˋ.ˊ * f) + o_fzp.ˊ;
                    float f7 = o_fzp.ॱ + (this.ˋ.ॱ * f);
                    f4 = ((-this.ˋ.ˊ) * f2) + o_fzp2.ˊ;
                    float f8 = o_fzp2.ॱ + ((-this.ˋ.ॱ) * f2);
                    this.ˊ[0].ˊ = (f3 + f4) * 0.5f;
                    this.ˊ[0].ॱ = (f7 + f8) * 0.5f;
                    this.ˎ[0] = ((f8 - f7) * this.ˋ.ॱ) + ((f4 - f3) * this.ˋ.ˊ);
                    return;
                case FACE_A:
                    o_fzp = this.ˏ;
                    fzi.ॱ(o_fzn.ˏ, o_fyl.ˋ, this.ˋ);
                    fzn.ˊ(o_fzn, o_fyl.ˎ, o_fzp);
                    o_fzp2 = this.ॱ;
                    while (i < o_fyl.ˏ) {
                        fzn.ˊ(o_fzn2, o_fyl.ˊ[i].ˊ, o_fzp2);
                        f3 = f - (((o_fzp2.ˊ - o_fzp.ˊ) * this.ˋ.ˊ) + ((o_fzp2.ॱ - o_fzp.ॱ) * this.ˋ.ॱ));
                        f4 = (this.ˋ.ˊ * f3) + o_fzp2.ˊ;
                        f3 = (f3 * this.ˋ.ॱ) + o_fzp2.ॱ;
                        f5 = ((-this.ˋ.ˊ) * f2) + o_fzp2.ˊ;
                        f6 = ((-this.ˋ.ॱ) * f2) + o_fzp2.ॱ;
                        this.ˊ[i].ˊ = (f4 + f5) * 0.5f;
                        this.ˊ[i].ॱ = (f3 + f6) * 0.5f;
                        this.ˎ[i] = ((f6 - f3) * this.ˋ.ॱ) + ((f5 - f4) * this.ˋ.ˊ);
                        i++;
                    }
                    return;
                case FACE_B:
                    o_fzp = this.ˏ;
                    fzi.ॱ(o_fzn2.ˏ, o_fyl.ˋ, this.ˋ);
                    fzn.ˊ(o_fzn2, o_fyl.ˎ, o_fzp);
                    o_fzp2 = this.ॱ;
                    while (i < o_fyl.ˏ) {
                        fzn.ˊ(o_fzn, o_fyl.ˊ[i].ˊ, o_fzp2);
                        f3 = f2 - (((o_fzp2.ˊ - o_fzp.ˊ) * this.ˋ.ˊ) + ((o_fzp2.ॱ - o_fzp.ॱ) * this.ˋ.ॱ));
                        f4 = (this.ˋ.ˊ * f3) + o_fzp2.ˊ;
                        f3 = (f3 * this.ˋ.ॱ) + o_fzp2.ॱ;
                        f5 = ((-this.ˋ.ˊ) * f) + o_fzp2.ˊ;
                        f6 = ((-this.ˋ.ॱ) * f) + o_fzp2.ॱ;
                        this.ˊ[i].ˊ = (f5 + f4) * 0.5f;
                        this.ˊ[i].ॱ = (f6 + f3) * 0.5f;
                        this.ˎ[i] = ((f6 - f3) * this.ˋ.ॱ) + ((f5 - f4) * this.ˋ.ˊ);
                        i++;
                    }
                    this.ˋ.ˊ = -this.ˋ.ˊ;
                    this.ˋ.ॱ = -this.ˋ.ॱ;
                    return;
                default:
                    return;
            }
        }
    }
}
